package com.chixing.service;



import com.chixing.pojo.Customer;
import com.chixing.pojo.HotelInfo;
import com.chixing.util.ServerResponse;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface CustomerService {
    public Customer getById(int id);
    public  boolean save(Customer customer);
    public  boolean update(Customer customer);
    public  boolean delete(Integer id);
    public  boolean getByOthers(String custName, String custPwd);
    public ServerResponse getByTelno(Long custTelno);
    public ServerResponse getPwdByCustNo(Long custNo);
    public ServerResponse getByCustNo(Long  custNo);
    public List<Customer> getAll();

    public PageInfo<Customer> getByPage(Integer pageNum);
}
